package com.lsw.photo;

import android.graphics.Bitmap;

import java.io.Serializable;


/**
 * 
 * @author Mars
 * 
 */
public class PubBanner implements IBanner, Serializable {
	private static final long serialVersionUID = 1L;
	public static final int Type_Url_Hospital = 1;
	public static final int Type_Url_Project = 2;
	public static final int Type_Url_Product = 3;
	public static final int Type_Url_Case = 4;

	public String id;
	public String img;
	public int imageID;
	public Bitmap imgBg;
	public String jump_id;
	/**
	 * 链接类型（1 医院 2 项目 3产品 4 案例）
	 */
	public int type;
	/**
	 * 点击跳转链接,如果不为空则直接跳转，否则根据type类型跳转详情页面
	 */
	public String url;
	/**
	 * 图片名称
	 */
	public String desc;

	@Override
	public String getUrl() {
		return img;
	}

	@Override
	public int getResource() {
		return imageID;
	}

	@Override
	public Bitmap getImgBg() {
		return imgBg;
	}

	@Override
	public String getPhotoDesc() {
		return desc;
	}

	@Override
	public int getClickType() {
		return type;
	}

	@Override
	public String getClickID() {
		return jump_id;
	}

	@Override
	public String getClickUrl() {
		return url;
	}
}
